<?php
session_start();
$user = $_SESSION['username'];
	
	if(!isset($user)){ 
		die("Anda belum Login, silahkan kembali ke halaman awal anda");
	}
?>
<DOCTYPE! HTML>

<html>
<head>


 <link type="text/css" rel="stylesheet" href="css/bootstrap.css"/>
<title>Jajanan Ngalam</title>
	<div class="hero-unit" style="margin-left:70; margin-top:70; margin-right:80 ">
		<h1><font face="comic sans MS" color="green">JAJANAN NGALAM</font></h1>
		<p><font face="comic sans MS" size=4> Website Integrasi pedangang jajanan asli kota Malang </font></p>
  
	</div>

	
</head>
<body style="background-image:url(images/blue.jpg)" >
	<div class="hero-unit" style="width:80%; height:auto; margin-left:70px;">
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="row">
					<div class="span9">
						<div class="navbar">
							<div class="navbar-inner" style="margin-left:20; margin-right:20">
								<a class="brand">PENJUAL</a>
								<ul class="nav">
								<li><a href="form-daftar-akun.php">Home</a></li>
								<li class="active"><a href="form-daftar-produk.php">Produk</a></li>
								<li><a href="map_penjual.php">Lokasi Jajanan</a></li>
								<li><a href="kritik_penjual.php">Kritik dan Saran</a></li>
								</ul>
							</div>
								<div class="continer-fluid">
									<div class="well span12">
										<?php
										include 'fungsi-produk.php';
										?>
									</div>
								</div>
						</div>
					</div>
					<div class="well span3">
						<form  method="POST" action="logout.php">
							<h4>Hai, <?php $cek=$_SESSION['username']; echo $cek; ?> !</h4>
							<button type="submit" class="btn">Keluar</button>
						</form>
					</div>
					
					<div class="well span3">
						<h4>Tambah Produk</h4>
						<form  id="form1" name="form1" method="post" action="insert-tambah-produk.php" enctype="multipart/form-data">
							<label> Nama produk</label>
							<input type="text" class="span3" name="nama" />
							<label> Deskripsi</label>
							<textarea name="deskripsi"></textarea>
							<label> Gambar</label>
							<input type="file" name="gambar">

							<button class="btn btn-success"><i class="icon-plus-sign icon-black" ></i>Submit</button>
						</form>
					</div>

					
					<script src="js/bootstrap.js"></script>
				</div>
			</div>
		</div>
	</div>
</body>

<footer>
<div class ="hero-unit" style="margin-left:70; margin-right:80" >
<center>asdasd </center>
</div>
</footer>
</html>